//
//  UserModel.m
//  项目三
//
//  Created by rimi on 15/9/28.
//  Copyright (c) 2015年 rimi. All rights reserved.
//

#import "UserModel.h"

@implementation UserModel

+ (UserModel *)defaultUser {
    
    static UserModel * model;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        if (!model) {
            model = [[UserModel alloc] init];
        }
    });
    return model;
}

- (BOOL)isLogin {
    _isLogin = [[NSUserDefaults standardUserDefaults]boolForKey:@"isLogin"];
    return _isLogin;
}
@end
